<?php include $this->header();?>
<?php if(false) {?>
<link rel="stylesheet" rev="stylesheet" href="../../../images/admincp/style.css" type="text/css" media="all" />
<?php }?>
<a href="<?=UE_Url::make('system/nav/add')?>" class="btn-r-top">添加导航</a>
<form method="post">
  <div class="p1 mt bd bg">
      <input type="hidden" name="post_type" id="post_type" value="order" />
      <table class="list rank" width="100%" cellpadding="0" cellspacing="0" border="0">
        <tr class="th">
          <td width="50" align="center">排序</td>
          <td align="center">ID</td>
          <td width="250" align="left">名称</td>
          <td align="center">URL</td>
          <td align="center">启用</td>
          <td align="center">管理操作</td>
        </tr>
        <?php foreach ($this->_nav as $mnode) {?>
        <tr class="bb">
          <td align="center"><input type="text" name="nav_order[<?=$mnode['nav_id']?>]" value="<?=$mnode['nav_order']?>" size="3" style="text-align:center;" /></td>
          <td width="40" align="center"><?=$mnode['nav_id']?></td>
          <td><?=$mnode['icon']?><?=$mnode['nav_name']?></td>
          <td><?=$mnode['nav_url']?></td>
          <td width="30" align="center"><?=$mnode['nav_enabled'] ? '<span class="green">√</span>':'<span class="red">×</span>'?></td>
          <td width="160">[<a href="<?=UE_Url::make('system/nav/add/subnav/nav_parent_id/'.$mnode['nav_id'])?>">添加子菜单</a>] [<a href="<?=UE_Url::make('system/nav/edit/'.$mnode['nav_id'])?>">编辑</a>] [<a href="<?=UE_Url::make('system/nav/del/'.$mnode['nav_id'])?>" onclick="if(!confirm('您确定要删除吗？')) return false;">删除</a>]</td>
        </tr>  	
        <?php }?>
      </table>
      <p style="padding:6px 10px;"><input type="submit" value="排序" class="btn" onclick="$('#post_type').val('order');"></p>
  </div>
</form>

<?php include $this->footer();?>